<!--# 
layout("/layout/default.html",{"menu":["settings","setting_list"],"breadcrumbs":[{"name":"配置列表"}]}){ 
 #-->
<table class="table table-striped table-bordered table-hover">
	<thead>
		<tr>
			<th colspan="8">
				<div class="row">
					<div class="col-md-3 ">
						<form action="${base!}/setting/search" method="post" class="search-form">
							<div class="input-group">
								<span class="input-group-addon"> 关键词 </span> <input class="form-control search-query" type="text" name="key" value="${obj.data.pager.paras.key!}" data-type="reg"
									data-reg="/^[\u4e00-\u9fa5\d\w]{1,}$/" data-default="Search..." data-error="请输入搜索关键词" placeholder="请输入关键词检索"> <span class="input-group-addon  search-btn"
									id="queryInfo" style="cursor: pointer;"> <i class="fa fa-search"></i> GO
								</span>
							</div>
						</form>
					</div>
					<div class="col-md-2 col-md-offset-7">
						<a href="${base}/setting/add" class="btn btn-info btn-sm"><i class="fa fa-plus-circle"></i> 新增配置</a>
					</div>
				</div>
			</th>
		</tr>
		<tr class="center">
			<th>id</th>
			<th>配置名</th>
			<th>配置值</th>
			<th>描述</th>
			<th>操作</th>
		</tr>
	</thead>

	<tbody>
		<!--# for(config in obj.data.pager.entities){ #-->
		<tr>
			<td>${config.id!}</td>
			<td>${config.name!}</td>
			<td>${config.value!}</td>
			<td>${config.description!}</td>
			<td><a class="btn btn-xs btn-info" href="${base}/setting/edit/${config.id!}"> <i class="ace-icon fa fa-pencil bigger-120"></i> 编辑
			</a>
				<button class="btn btn-xs btn-danger btn-delete" data-url='/setting/delete' data-id='${config.id!}'>
					<i class="ace-icon fa fa-trash-o bigger-120"></i> 删除
				</button></td>
		</tr>
		<!--# } #-->
	</tbody>
	<tfoot>
		<!--#if(obj.data.pager.count == 0){  #-->
		<tr>
			<td colspan="8" class="null-pager">没有符合条件的数据</td>
		</tr>
		<!--# }else{ #-->
		<tr>
			<td colspan="8">
				<div class="pull-right">${obj.data.pager.pagerBar!}</div>
			</td>
		</tr>
		<!--# }#-->
	</tfoot>
</table>
<!--# } #-->